const captchaService = require('../services/captcha.service');
const AbstractController = require('./abstract.controller');

/**
 * 图形码
 */
class CaptchaController extends AbstractController{
    constructor() { 
        super();
    }
    createCaptcha(ctx) {
        const captcha = captchaService.createCaptcha();
        ctx.body = this.success(captcha);        
    }
}



module.exports = global.buildClass(CaptchaController);